<?php
namespace app\api\validate\service;

use think\Validate;

class Withdraw extends Validate
{
    protected $rule =   [
        'num'                  => 'require|number',
        'withdrawtype'         => 'require|in:0,1',
        'type'              => 'require',
    ];

    protected $message  =   [
        'num.require'               => '请选择提现余额',
        'type.require'              => '请提交提现金额来源',
        'withdrawtype.require'      => '请选择正确提现方式',
        'withdrawtype.in'           => '请选择正确提现方式',
        'num.number'                => '提现金额必须是数字',
    ];

    protected $scene = [
        'add'   =>  ['type','num','withdrawtype'],
    ];
}
